package com.keyancompany.zhongbaopingtai.model;

import com.keyancompany.zhongbaopingtai.Constants;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/8/9.
 */
public class BaseModel implements Serializable {

    public String result;
    public String token;
    public String msg;
    public String data;//data 仍然是 字符串

    @Override
    public String toString() {
        return "BaseModel{" +
                "result='" + result + '\'' +
                ", token='" + token + '\'' +
                ", msg='" + msg + '\'' +
                ", data='" + data + '\'' +
                '}';
    }

    public boolean isSuccess(){
        return result.equals(Constants.SUCCESS) || result.equals(Constants.SUCESS);
    }
}
